package com.dks.mapper;

import java.util.*;

import com.dks.dto.publicCompoment.PublicCommentUserDto;
import com.dks.models.publicCompoment.PublicComment;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface PublicCommentMapper{

    int insert(PublicComment publicComment);

    int delete(@Param("userId")long userId, @Param("id")long id);

    PublicComment select(@Param("id")long id);

    List<PublicCommentUserDto> selectByEntity(@Param("entityType")String entityType, @Param("entityId")long entityId);
}
